package com.feature.shop.user.converter;

import java.util.List;

import org.mapstruct.Mapper;
import com.feature.core.config.MapstructTypeConvert;

import com.feature.shop.user.api.request.ShopRoleListRequest;
import com.feature.shop.user.api.request.ShopRolePageRequest;
import com.feature.shop.user.api.vo.ShopRoleVo;
import com.feature.shop.user.model.query.ShopRoleQuery;
import com.feature.shop.user.model.entity.ShopRoleEntity;

/***
 * 角色Converter
 */
@Mapper(uses = MapstructTypeConvert.class)
public interface ShopRoleConverter {

    ShopRoleVo entityToVO(ShopRoleEntity entity);

    List<ShopRoleVo> entityListToVO(List<ShopRoleEntity> list);

    ShopRoleQuery pageRequestToQuery(ShopRolePageRequest request);

    ShopRoleQuery listRequestToQuery(ShopRoleListRequest request);

}
